package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities;

import java.io.Serializable;

public class FlowFormFieldLimit implements Serializable {


    private static final long serialVersionUID = -4719519728989265178L;
    /**
     * 编号
     */
    private Integer id;

    /**
     * 部署编号
     */
    private String deployId;

    /**
     * 表单编号
     */
    private String formId;

    /**
     * 流程编码
     */
    private String flowCode;

    /**
     * 节点编码
     */
    private String nodeCode;

    /**
     * 字段编码
     */
    private String fieldId;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段类型
     * 0：普通字段
     * 1：附件
     */
    private Integer fieldType;

    /**
     * 字段约束
     * 转换为二进制，从后往前数，每一位的枚举参考FormFieldLimitEnum
     */
    private Integer fieldLimit;




    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getDeployId() {
        return deployId;
    }


    public void setDeployId(String deployId) {
        this.deployId = deployId == null ? null : deployId.trim();
    }


    public String getFormId() {
        return formId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.form_id
     *
     * @param formId the value for flow_form_field_limit.form_id
     *
     * @mbggenerated
     */
    public void setFormId(String formId) {
        this.formId = formId == null ? null : formId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.flow_code
     *
     * @return the value of flow_form_field_limit.flow_code
     *
     * @mbggenerated
     */
    public String getFlowCode() {
        return flowCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.flow_code
     *
     * @param flowCode the value for flow_form_field_limit.flow_code
     *
     * @mbggenerated
     */
    public void setFlowCode(String flowCode) {
        this.flowCode = flowCode == null ? null : flowCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.node_code
     *
     * @return the value of flow_form_field_limit.node_code
     *
     * @mbggenerated
     */
    public String getNodeCode() {
        return nodeCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.node_code
     *
     * @param nodeCode the value for flow_form_field_limit.node_code
     *
     * @mbggenerated
     */
    public void setNodeCode(String nodeCode) {
        this.nodeCode = nodeCode == null ? null : nodeCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.field_id
     *
     * @return the value of flow_form_field_limit.field_id
     *
     * @mbggenerated
     */
    public String getFieldId() {
        return fieldId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.field_id
     *
     * @param fieldId the value for flow_form_field_limit.field_id
     *
     * @mbggenerated
     */
    public void setFieldId(String fieldId) {
        this.fieldId = fieldId == null ? null : fieldId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.field_name
     *
     * @return the value of flow_form_field_limit.field_name
     *
     * @mbggenerated
     */
    public String getFieldName() {
        return fieldName;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.field_name
     *
     * @param fieldName the value for flow_form_field_limit.field_name
     *
     * @mbggenerated
     */
    public void setFieldName(String fieldName) {
        this.fieldName = fieldName == null ? null : fieldName.trim();
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.field_type
     *
     * @return the value of flow_form_field_limit.field_type
     *
     * @mbggenerated
     */
    public Integer getFieldType() {
        return fieldType;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.field_type
     *
     * @param fieldType the value for flow_form_field_limit.field_type
     *
     * @mbggenerated
     */
    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column flow_form_field_limit.field_limit
     *
     * @return the value of flow_form_field_limit.field_limit
     *
     * @mbggenerated
     */
    public Integer getFieldLimit() {
        return fieldLimit;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column flow_form_field_limit.field_limit
     *
     * @param fieldLimit the value for flow_form_field_limit.field_limit
     *
     * @mbggenerated
     */
    public void setFieldLimit(Integer fieldLimit) {
        this.fieldLimit = fieldLimit;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table flow_form_field_limit
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deployId=").append(deployId);
        sb.append(", formId=").append(formId);
        sb.append(", flowCode=").append(flowCode);
        sb.append(", nodeCode=").append(nodeCode);
        sb.append(", fieldId=").append(fieldId);
        sb.append(", fieldName=").append(fieldName);
        sb.append(", fieldType=").append(fieldType);
        sb.append(", fieldLimit=").append(fieldLimit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}